<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'openLocation'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="page-section">
			<onekit-form @Submit="openLocation">
				<onekit-view onekit-class="weui-cells weui-cells_after-title">
					<onekit-view onekit-class="weui-cell weui-cell_input">
						<onekit-view onekit-class="weui-cell__hd">
							<onekit-view onekit-class="weui-label">经度</onekit-view>
						</onekit-view>
						<onekit-view onekit-class="weui-cell__bd">
							<onekit-input onekit-class="weui-input" type="text" :disabled="true" value="113.324520" name="longitude"></onekit-input>
						</onekit-view>
					</onekit-view>
					<onekit-view onekit-class="weui-cell weui-cell_input">
						<onekit-view onekit-class="weui-cell__hd">
							<onekit-view onekit-class="weui-label">纬度</onekit-view>
						</onekit-view>
						<onekit-view onekit-class="weui-cell__bd">
							<onekit-input onekit-class="weui-input" type="text" :disabled="true" value="23.099994" name="latitude"></onekit-input>
						</onekit-view>
					</onekit-view>
					<onekit-view onekit-class="weui-cell weui-cell_input">
						<onekit-view onekit-class="weui-cell__hd">
							<onekit-view onekit-class="weui-label">位置名称</onekit-view>
						</onekit-view>
						<onekit-view onekit-class="weui-cell__bd">
							<onekit-input onekit-class="weui-input" type="text" :disabled="true" value="T.I.T 创意园" name="name"></onekit-input>
						</onekit-view>
					</onekit-view>
					<onekit-view onekit-class="weui-cell weui-cell_input">
						<onekit-view onekit-class="weui-cell__hd">
							<onekit-view onekit-class="weui-label">详细位置</onekit-view>
						</onekit-view>
						<onekit-view onekit-class="weui-cell__bd">
							<onekit-input onekit-class="weui-input" type="text" :disabled="true" value="广州市海珠区新港中路397号" name="address"></onekit-input>
						</onekit-view>
					</onekit-view>
				</onekit-view>
				<onekit-view onekit-class="btn-area">
					<onekit-button type="primary" formType="submit">查看位置</onekit-button>
				</onekit-view>
			</onekit-form>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "查看位置",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../weixin2vue/wx.js';
import Macro from '../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,["true"],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'查看位置',
        "path":'packageAPI/pages/open-location/open-location'
};
    },
    "openLocation"(e){
      console.log(e);
      const value = e.detail.value;
      console.log(value);
      wx.openLocation({
        "longitude":Number(value.longitude),
        "latitude":Number(value.latitude),
        "name":value.name,
        "address":value.address
});
    }
});

</script>
<style 
 lang="css">
@import '/common/lib/weui.css';
</style>